﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AuthenticationSection
{
    internal class BillsModel
    {
        public BillsModel() { }

        public BillsModel(string userName, string passWord, DateTime issueDate, DateTime expirationData, string userRole)
        {
            this._UserName = userName;
            this._Password = passWord;
            this._IssueDate = issueDate;
            this._ExpirationDate = expirationData;
            this._UserRole = userRole;
        }

        /// <summary>
        /// 用户名
        /// </summary>
        private string _UserName = "";
        public string UserName { get { return this._UserName; } }

        /// <summary>
        /// 密码
        /// </summary>
        private string _Password = "";
        public string Password { get { return this._Password; } }

        /// <summary>
        /// 签发日期
        /// </summary>
        private DateTime _IssueDate = DateTime.UtcNow;
        public DateTime IssueDate { get { return this._IssueDate; } }

        /// <summary>
        /// 过期时间
        /// </summary>
        private DateTime _ExpirationDate = DateTime.UtcNow.AddMinutes(30);
        public DateTime ExpirationDate { get { return this._ExpirationDate; } }

        /// <summary>
        /// 用户权限
        /// </summary>
        private string _UserRole = "";
        public string UserRole { get { return this._UserRole; } }
    }
}
